package org.dezenho.client.IU;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

import org.dezenho.client.SO.DezenhoClient;

/**
 *Classe GenericTela � responsavel por implementar configuracoes padroes as
 *demais telas.
 *@author dafneguisard
 */
@SuppressWarnings("serial")
public class GenericTela extends JFrame {
	
	private ImageIcon logo = new ImageIcon(getClass().getResource("dezenho-logo2.jpg"));

	protected GenericTela(){
	}
	
	protected void criaTela(){
		this.setSize(574, 693);
		this.setResizable(false);
		this.addWindowListener(new java.awt.event.WindowAdapter() {
        	public void windowClosing(java.awt.event.WindowEvent e) {
        		DezenhoClient.getInstance().encerraCliente();
        	}
		});
		this.setVisible(true);		
	}

	protected ImageIcon getLogo() {
		return logo;
	}

	protected void setLogo(ImageIcon logo) {
		this.logo = logo;
	}
}
